package com.cloudfun.campusshare.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;

/**
 * 设备程序
 * Created by Huqin on 2020/4/20
 */
@Data
@Entity
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "device_program")
public class DeviceProgramEntity extends BaseEntity {

    @Id
    @GenericGenerator(name = "id_uuid", strategy = "uuid")
    @GeneratedValue(generator = "id_uuid")
    @Column(unique = true, columnDefinition = ("varchar(40) not null comment '主键uuid'"))
    private String id;

    @Column(columnDefinition = ("varchar(32) not null comment '展示名称'"))
    private String displayName;

    @Column(columnDefinition = ("varchar(32) not null comment '系统中用到的名称'"))
    private String name;

    @Column(columnDefinition = ("varchar(32) not null comment '展示值'"))
    private String displayValue;

    @Column(columnDefinition = ("varchar(32) not null comment '系统中用到的value'"))
    private String value;
}
